exec_name := main

default :
	@echo "Please choice algorithm!"
	@echo "- - - - - - - - - - - -"
	@echo "Usage: make quick.sort"
	@echo "       make bubble.sort"

%.o : %.c
	gcc -c -o $@ $^

%.run : %.o main.o
	gcc -o $(exec_name) $^
	./$(exec_name)
	@rm $(exec_name)

clean : 
	rm -f *.o $(exec_name)
.PHONY : default clean